package cn.com.gof.behavior.observer;

/**
 * <p>Title: ObserverA</p>  
 * <p>Description: </p>  
 * @author WangJun
 * @date 2018年9月10日 下午3:35:56
 */
public class ObserverA implements Observer{
	private int myState;
	@Override
	public void update(Subject s) {
		
		myState = ((ConcreteSubject)s).getState();
	}
	public int getMyState() {
		return myState;
	}
	public void setMyState(int myState) {
		this.myState = myState;
	}

	
	
}
